//
//  XS_BaseVM.swift
//  Pods
//
//  Created by 韩云智 on 2020/7/15.
//

import UIKit
import RxCocoa
import RxSwift
import Toast_Swift

open class XS_BaseVM: NSObject {
    public enum ActionType {
        case `default`
        case showMsg(msg: String, position: ToastPosition)
        case push(vc: UIViewController, animated: Bool)
        case present(vc: UIViewController, animated: Bool, completion: (() -> Void)?)
        case change(set: Bool)
    }
    
    open lazy var disposeBag = DisposeBag()
    open lazy var actionPS = PublishSubject<ActionType>()
    
    deinit {
        xsDebug { print("deinit: \(type(of: self))") }
    }
    public override init() {
        super.init()
        xsDebug { print("init: \(type(of: self))") }
    }
}
